package com.menhai.personmanagement.controller;

import com.menhai.personmanagement.entity.TjXdtReport;
import com.menhai.personmanagement.entity.vo.TjXdtReportVo;
import com.menhai.personmanagement.services.ITjXdtReportService;
import lombok.extern.slf4j.Slf4j;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author shikun
 * @since 2022-05-16
 */

@Slf4j
@RestController
@RequestMapping("/tj-xdt-report")
public class TjXdtReportController {

     @Autowired
     private ITjXdtReportService tjXdtReportService;



     /**
      * @describe 上传图片
      * @param tjXdtReportVo
      * @Return int
      * @Date 2022/5/17 9:20
      * @author shikun
      */
     @RequestMapping("/addTjXdtReport")
     public int addTjXdtReport(@RequestBody TjXdtReportVo tjXdtReportVo){
          return tjXdtReportService.addTjXdtReport(tjXdtReportVo);
     }

     /**
      * @describe 上传PDF
      * @param tjXdtReportVo
      * @Return int
      * @Date 2022/5/17 9:46
      * @author shikun
      */
     @RequestMapping("/addTjXdtReportPdf")
     public int addTjXdtReportPdf(@RequestBody TjXdtReportVo tjXdtReportVo){
          return tjXdtReportService.addTjXdtReportPdf(tjXdtReportVo);
     }

     @RequestMapping("/selectTjXdtReportList")
     public List<TjXdtReportVo> selectTjXdtReportList(@Param("tjXdtReportVo") TjXdtReportVo tjXdtReportVo){
          return tjXdtReportService.selectTjXdtReportList(tjXdtReportVo);
     }
     
     @RequestMapping("/addTjXdtReportUpload")
     public int addTjXdtReportUpload(@RequestBody TjXdtReportVo tjXdtReportVo){
          return tjXdtReportService.addTjXdtReportUpload(tjXdtReportVo);
     }
}
